Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Help using FindWindow

I have not figured out how to use FindWindow to go to my proper window. I think the problem is that I don't know the appropriate name or title of the Internet Explorer window. Can someone help?

I have a LotusScript button.

------------Here's the code in the Declarations:
Declare Function FindWindow Lib "user32" Alias "FindWindowA" _
(Byval lpClassName As String, Byval lpWindowName As Long) As Long
Dim hwnd As Long
Const vbinformation = 64 ' Remove if running in native Visual Basic
------------And here's the code in the Click event

Sub Click(Source As Button)

REM Call the FindWindow API; this API returns a window handle.
hwnd = FindWindow( "Internet Explorer", 0& )

REM See if you were able to obtain the Window handle.
If hwnd <> 0 Then ' If not zero a window handle was obtained.
Msgbox "Successfully obtained Window Handle (HWND) for " & "IE.", vbInformation, "Got Handle"
Else
Msgbox "Could not obtain Window Handle (HWND) for IE.", vbInformation, "Failed To Get Handle"
End If
End Sub


Feedback response number WEBB8YQJ3P created by ~Mario Retumily on 10/03/2012

finding an open instance of Interne... (~Holly Umlugenl... 2.Oct.12)
. . You can use Windows API functions f... (~Tip Opjipymanl... 2.Oct.12)
. . . . Help using FindWindow (~Holly Umlugenl... 3.Oct.12)
. . Probably not allowed (~Ned Nimfanakon... 3.Oct.12)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS